package com.download.web.entity.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @description: 文章列表
 * @author: cmy
 * @create: 2019-02-21 10:29
 **/
@Getter
@Setter
public class ArticleListModel {
    private Integer id;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date createTime;

    /**
     * 浏览人数
     */
    private Integer browseNum;

    /**
     * 文章路径
     */
    private String url;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 文章分类
     */
    private String type;

    private String typeName;

    /**
     * 可见类型，1全部可见，2登录可见，购买可见
     */
    private String visibleType;

    //文章图片
    private String img;
    //文章内容
    private String content;

    private String appName;

    private Integer underType;
    private String tags;
}
